import { gql } from '@apollo/client';


export const GetDemoDashData = gql`
  query getDemoDashData($endTime: Int!) {
    inbounds(end_time: $endTime) {
      date
      total
    }
    outbounds(end_time: $endTime) {
      date
      total
    }
    domesticIp(end_time: $endTime) {
      date
      total
    }
    overseasIp(end_time: $endTime) {
      date
      total
    }
    totalOutFlow(end_time: $endTime) {
      country
      number
    }
  }
`;



export const Article  = gql`
  query articles{
    articles {
      id
      title
    }
  }
`;

export const ArticleByID  = gql`
  query article($id:ID!){
    article(id:$id){
      id
      title
    }
  }
`;

export const DaleteArticle = gql`
  mutation DeleteArticle($id:ID!) {
    deleteArticle(id:$id){
      success
    }
  }
`;
